import request from '@/utils/request'

// 查询测试Demo列表
export function listTDemo(query) {
  return request({
    url: '/demo/TDemo/list',
    method: 'get',
    params: query
  })
}

// 查询测试Demo详细
export function getTDemo(id) {
  return request({
    url: '/demo/TDemo/' + id,
    method: 'get'
  })
}

// 新增测试Demo
export function addTDemo(data) {
  return request({
    url: '/demo/TDemo',
    method: 'post',
    data: data
  })
}

// 修改测试Demo
export function updateTDemo(data) {
  return request({
    url: '/demo/TDemo',
    method: 'put',
    data: data
  })
}

// 删除测试Demo
export function delTDemo(id) {
  return request({
    url: '/demo/TDemo/' + id,
    method: 'delete'
  })
}
